package com.daidai.service;

import com.daidai.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author: Mr.Chen
 * Date: 2022/08/01 9:32
 * Description:
 */
public interface UserService {
    List<User> findAllUsers();

    User validUser(@Param("userId") int userId, @Param("password") String password);

    User validUserAccount(@Param("userId") int userId);

    User findUserById(@Param("userId") int userId);

    int findUserTypeById(@Param("userId") int userId);

    void addUser(@Param("userId") int userId, @Param("password") String password, @Param("type") int type);

    void deleteUser(@Param("userId") int userId);

    void updateUserPassword(@Param("userId") int userId, @Param("password") String password);

    void updDateUserType(@Param("userId") int userId, @Param("type") int type);

}
